dict1 = {'name': 'hello', 'age': 18}
# TODO 遍历key
for key in dict1.keys():
    print(key)

# TODO 遍历value
for value in dict1.values():
    print(value)

# TODO 遍历key和value
# print(dict1.items())  # dict_items([('name', 'hello'), ('age', 18)])
for key, value in dict1.items():
    print(key, value)
